package clone方法的讲解;

import java.io.*;

public class ATest {

    public static void main(String[] args) throws CloneNotSupportedException, IOException, ClassNotFoundException {
        Person zs = new Person("张三", 20,new Children("张小三",10));
        Person person = DeepClone.builder().build().deepClone(zs);
        System.out.println(zs==person);
        System.out.println(zs.getChildren()==person.getChildren());
        person.getChildren().setName("aaaaAAAAAAAA");
        System.out.println(zs);
        System.out.println(person);

    }

}













